package ev.utility;

public class Value {
		public static double lowValue(double upLimit,double contentValue,double nowValue){
			double result = 0;
			result = ((upLimit - nowValue)/(upLimit - contentValue))*40+60;
			return result;
		}
		public static double parseNum(double value){
				double lowLimit = 0;
				double upLimit = 100;
				if(value < lowLimit){
						value = lowLimit;
				}
				if(value > upLimit){
						value = upLimit;
				}
				return value;
		}
}
